Functions


Accessing Theme Information

GetTheme Obtains a collection containing data describing the current theme.
GetThemeFont Obtains information about a system font in the current theme.
IsValidAppearanceFileType Returns whether the system can interpret files of a given file type as appearance files.
IterateThemes Iterates over all themes installed on a system.
SetTheme Sets a specified collection as the current theme.
UseThemeFont Sets the font of the current graphics port to one of the current theme’s system fonts.

Drawing Theme-Compliant Controls

DrawThemeButton Draws a button.
DrawThemeChasingArrows Draws an asynchronous arrows indicator.
DrawThemeEditTextFrame Draws an editable text frame.
DrawThemeFocusRect Draws or erases a focus ring around a specified rectangle.
DrawThemeFocusRegion Draws or erases a focus ring around a specified region.
DrawThemeGenericWell Draws an image well frame.
DrawThemeListBoxFrame Draws a list box frame.
DrawThemePlacard Draws a placard.
DrawThemePopupArrow Draws a pop-up arrow.
DrawThemePrimaryGroup Draws a primary group box frame.
DrawThemeScrollBarArrows Draws scroll bar arrows consistent with the current system preferences.
DrawThemeSecondaryGroup Draws a secondary group box frame.
DrawThemeSeparator Draws a separator line.
DrawThemeTab Draws a tab.
DrawThemeTabPane Draws a tab pane.
DrawThemeTickMark Draws a tick mark.
DrawThemeTrack Draws a track.
DrawThemeTrackTickMarks Draws tick marks for a track.
GetThemeButtonBackgroundBounds Obtains the rectangle that contains a button.
GetThemeButtonContentBounds Obtains the rectangle where content can be drawn for a button.
GetThemeButtonRegion Obtains the region occupied by a button.
GetThemeCheckBoxStyle Obtains the system preference for the type of mark to use in a checkbox.
GetThemeScrollBarArrowStyle Obtains the system preference for the type of scroll bar arrows to be used.
GetThemeScrollBarThumbStyle Obtains the system preference for the type of scroll box to be used.
GetThemeScrollBarTrackRect Obtains the area containing the track portion of a scroll bar.
GetThemeTabRegion Obtains the region occupied by a tab.
GetThemeTrackBounds Obtains the bounding rectangle of a track.
GetThemeTrackDragRect Obtains the area in which the user may drag a track’s indicator.
GetThemeTrackLiveValue Obtains the current value of a track’s indicator, given its relative position.
GetThemeTrackThumbPositionFromOffset Obtains the relative position of a track’s indicator, given an offset from its prior position.
GetThemeTrackThumbPositionFromRegion Obtains the relative position of a track’s indicator, given its current position.
GetThemeTrackThumbRgn Obtains the region containing a track’s indicator.
HitTestThemeScrollBarArrows Returns whether the user clicked upon the specified scroll bar’s arrows.
HitTestThemeTrack Returns whether the user clicked upon the specified track.

Drawing Theme-Compliant Menus

DrawThemeMenuBackground Draws a menu background.
DrawThemeMenuBarBackground Draws a menu bar background.
DrawThemeMenuItem Draws a menu item.
DrawThemeMenuSeparator Draws a menu item separator line.
DrawThemeMenuTitle Draws a menu title.
GetThemeMenuBackgroundRegion Obtains the background region for a menu.
GetThemeMenuBarHeight Obtains the height of a menu bar.
GetThemeMenuItemExtra Obtains a measurement of the space surrounding a menu item.
GetThemeMenuSeparatorHeight Obtains the height of a menu separator line.
GetThemeMenuTitleExtra Obtains a measurement of the space to either side of a menu title.

Drawing Theme-Compliant Windows

DrawThemeModelessDialogFrame Draws a beveled outline inside the content area of a modeless dialog box.
DrawThemeScrollBarDelimiters Outlines a window’s scroll bars.
DrawThemeStandaloneGrowBox Draws a size box.
DrawThemeStandaloneNoGrowBox Draws a fill image for use in the corner space between scroll bars.
DrawThemeTitleBarWidget Draws a close box, zoom box, or collapse box.
DrawThemeWindowFrame Draws a window frame.
DrawThemeWindowHeader Draws a window header.
DrawThemeWindowListViewHeader Draws a window list view header.
GetThemeStandaloneGrowBoxBounds Obtains the bounds of a size box.
GetThemeWindowRegion Obtains the specified window region.
GetThemeWindowRegionHit Obtains the part of the window that the user clicked upon.
SetThemeTextColorForWindow Sets a window’s foreground color to a theme-compliant color.
SetThemeWindowBackground Associates a theme-compliant color or pattern with the background of a window.

Playing Theme Sounds

BeginThemeDragSound Continuously plays a theme-specific sound associated with the user’s movement of a given interface object.
EndThemeDragSound Terminates the playing of a sound associated with the user’s movement of a given interface object.
PlayThemeSound Plays an asynchronous sound associated with the specified state change.

Registering With the Appearance Manager

IsAppearanceClient Returns whether a given process is currently registered as a client of the Appearance Manager.
RegisterAppearanceClient Registers your program with the Appearance Manager.
UnregisterAppearanceClient Informs the Appearance Manager that your program is no longer its client.

Specifying Theme-Compliant Cursors

SetAnimatedThemeCursor Animates a version of the specified cursor type that is consistent with the current theme.
SetThemeCursor Sets the cursor to a version of the specified cursor type that is consistent with the current theme.

Using Theme-Compliant Colors and Patterns

ApplyThemeBackground Sets the background color or pattern of the current port to be consistent with that of an embedding object.
DisposeThemeDrawingState Releases the memory associated with a reference to a graphics port’s drawing state.
GetThemeAccentColors Obtains a copy of a theme’s accent colors.
GetThemeBrushAsColor Obtains the color that corresponds to a given theme brush type under the current theme.
GetThemeDrawingState Obtains the drawing state of the current graphics port.
GetThemeTextColor Obtains the text color used for a specified element under the current theme.
IsThemeInColor Returns whether the current theme would draw in color in the given environment.
NormalizeThemeDrawingState Sets the current graphics port to a default drawing state.
SetThemeBackground Applies a theme-compliant color or pattern to the background of the current port.
SetThemeDrawingState Sets the drawing state of the current graphics port.
SetThemePen Applies a theme-compliant color or pattern to the foreground of the current port.
SetThemeTextColor Sets the current text color to be consistent with that of a specified element.

Miscellaneous

CallMenuItemDrawingProc
CallMenuTitleDrawingProc
CallThemeButtonDrawProc
CallThemeEraseProc
CallThemeIteratorProc
CallThemeTabTitleDrawProc
CallWindowTitleDrawingProc
DisposeMenuItemDrawingUPP
DisposeMenuItemDrawingWithContextUPP
DisposeMenuTitleDrawingUPP
DisposeMenuTitleDrawingWithContextUPP
DisposeThemeButtonDrawUPP
DisposeThemeButtonDrawWithContextUPP
DisposeThemeEraseUPP
DisposeThemeIteratorUPP
DisposeThemeTabTitleDrawUPP
DisposeThemeTabTitleDrawWithContextUPP
DisposeWindowTitleDrawingUPP
DrawThemeButtonWithContext
DrawThemeEditTextFrameWithContext
DrawThemeGenericWellWithContext
DrawThemeGrabberWithContext
DrawThemeListBoxFrameWithContext
DrawThemeMenuBackgroundWithContext
DrawThemeMenuBarBackgroundWithContext
DrawThemeMenuItemWithContext
DrawThemeMenuSeparatorWithContext
DrawThemeMenuTitleWithContext
DrawThemePaneSplitterWithContext
DrawThemePlacardWithContext
DrawThemePrimaryGroupWithContext
DrawThemeScrollBarArrowsWithContext
DrawThemeSecondaryGroupWithContext
DrawThemeTabPaneWithContext
DrawThemeTabWithContext
DrawThemeText
DrawThemeTextBox
DrawThemeTickMarkWithContext
DrawThemeTitleBarWidgetInRectWithContext
DrawThemeTitleBarWidgetWithContext
DrawThemeTrackTickMarksWithContext
DrawThemeTrackWithContext
GetThemeFontInfo
GetThemeMetric
GetThemeTabDrawRegion
GetThemeTabPaneContentRegion
GetThemeTabPaneDrawRegion
GetThemeTextDimensions
GetThemeTextLength
GetThemeTextShadowOutset
GetThemeWindowGrowSides
GetThemeWindowTitleBaselineOffset
InvokeMenuItemDrawingUPP
InvokeMenuItemDrawingWithContextUPP
InvokeMenuTitleDrawingUPP
InvokeMenuTitleDrawingWithContextUPP
InvokeThemeButtonDrawUPP
InvokeThemeButtonDrawWithContextUPP
InvokeThemeEraseUPP
InvokeThemeIteratorUPP
InvokeThemeTabTitleDrawUPP
InvokeThemeTabTitleDrawWithContextUPP
InvokeWindowTitleDrawingUPP
NewMenuItemDrawingProc
NewMenuItemDrawingUPP
NewMenuItemDrawingWithContextUPP
NewMenuTitleDrawingProc
NewMenuTitleDrawingUPP
NewMenuTitleDrawingWithContextUPP
NewThemeButtonDrawProc
NewThemeButtonDrawUPP
NewThemeButtonDrawWithContextUPP
NewThemeEraseProc
NewThemeEraseUPP
NewThemeIteratorProc
NewThemeIteratorUPP
NewThemeTabTitleDrawProc
NewThemeTabTitleDrawUPP
NewThemeTabTitleDrawWithContextUPP
NewWindowTitleDrawingProc
NewWindowTitleDrawingUPP
TruncateThemeText

© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)